package cn.changeforyou.analyzer.srcFiles;

import org.slf4j.Logger;
import lombok.Data;

/**
 * 类注释 * @author 作者
 */
@A(length = "13", old = 2)
@Data()
final class HelloWorld {

    /**
     * 成员变量注释
     */
    Logger log;

    public static Logger log2;

    {
        System.out.println("在块中");
    }

    static {
        System.out.println("在静态块中");
    }



    /**
     * 字段注释
     */
    private String field;
    
    public HelloWorld() {
        System.out.println("在构造方法中");
    }
    

    /**
     * java docComment
     */
    public void sayHello() {
        System.out.println("change your mind!");
    }

    public static void main(String[] args) {
        /**
         * 局部注释
         */
        System.out.println("Hello world!");
        int a = 3;
        new Thread(() -> System.out.println("在匿名内部类中!"));
    }
}
